// 路由文件
import Vue from 'vue'
// 引入vueRouter
import VueRouter from 'vue-router'

// Vue提供的加载插件方法
Vue.use(VueRouter)

//电影路由
import filmRouter from './routes/film'
//个人中心
import centerRouter from './routes/center'
//订单
import orderFromRouter from './routes/orderFrom'

//美食
import meishiRouter from './Jh/index'

//周边游
import zhoubianyouRouter from './lrr/index'

//猫眼电影
import catFilmRouter from './jyh/index'

//张承其
import zhangcqiRouter from './zcq/index'



//网站所有的路由规则定义
const routes=[
 
  
  filmRouter,
  centerRouter,
  orderFromRouter,
  meishiRouter,
  zhoubianyouRouter,
  catFilmRouter,
  zhangcqiRouter,
  {
    path:'/',
    redirect:'/films'
  }
  
]

// 创建VueRuter实例
const router = new VueRouter({
  // 路由模式  hash history  默认的规则就为hash
  // mode: 'history',
  routes
})

// 导出
export default router
